package org.example.springbook.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.springbook.model.UserInfo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-07-14
 * Time: 12:06
 */
@Mapper
public interface UserInfoMapper {

    /**
     * 根据用户名称查询用户信息
     *
     * @param name
     * @return
     */
    @Select("select * from user_info where user_name=#{name}")
    public UserInfo selectUserByName(String name);
}
